var _account_service = require('service/account-service.js');
require('page/common/inform/index.js');
//main.js
require('page/common/header/index.js');
var _catalog_service = require('service/catalog-service.js');
var catalogMain = {

    init: function () {
        this.loadAccountInfo();
    },
    loadAccountInfo: function(){
        _account_service.checkLogin(
            function(res){
                $('#WelcomeContent').text('欢迎您,'+res.username+'用户！');
            },
            function(erroMsg){
                $('#WelcomeContent').text('');
            }
        );
    }
}

module.exports = catalogMain.init();